package com.mxdx.edu.service.impl;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.mxdx.edu.dao.SemesterDao;
import com.mxdx.edu.service.ISemesterService;

/**
 * 学生service
 *
 * @author howie
 * @date 2018-02-12
 */
@Service
public class SemesterServiceImpl implements ISemesterService {

	@Resource
	private SemesterDao semesterDao;

	@Override
	public List<Map<String, Object>> findListByMap(Map<String, Object> param) {
		return null;
	}

	@Override
	public List<Map<String, Object>> findListByClassId(String classId) {
		Map<String, Object> param = new HashMap<>();
		param.put("classId", classId);
		List<Map<String, Object>> semesterMap = semesterDao.findListByMap(param);
		return semesterMap;
	}

	//学期课程列表(成绩页面)
	@Override
	public List<Map<String, Object>> findScoreListByMap(String classId,String studentId){

		Map<String, Object> param = new HashMap<>();
		param.put("classId", classId);
		param.put("studentId",studentId);

		List<Map<String, Object>> scoreListMap = semesterDao.findScoreListByMap(param);

		return scoreListMap;
	}

}
